package com.wy2cloud.jjwt;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;

@ConfigurationProperties(value="wy2cloud.jjwt")
public class JsonWebTokenProperties {

	private boolean enabled;

	private  String secret;
    private  Long expiration;
    
    private String requestParam;
    private String cookieName;
    private String tokenHeader;
    private String tokenHead;
    private String[] tokenStores; //header,cookie,url
    
    
    
	public String getSecret() {
		return secret;
	}
	public void setSecret(String secret) {
		this.secret = secret;
	}
	public Long getExpiration() {
		return expiration;
	}
	public void setExpiration(Long expiration) {
		this.expiration = expiration;
	}


    public boolean isEnabled() {
        return enabled;
    }

    public void setEnabled(boolean enabled) {
        this.enabled = enabled;
    }
    
    
    
    
	public String getRequestParam() {
		return requestParam;
	}
	public void setRequestParam(String requestParam) {
		this.requestParam = requestParam;
	}
	public String getCookieName() {
		return cookieName;
	}
	public void setCookieName(String cookieName) {
		this.cookieName = cookieName;
	}
	public String getTokenHeader() {
		return tokenHeader;
	}
	public void setTokenHeader(String tokenHeader) {
		this.tokenHeader = tokenHeader;
	}
	public String getTokenHead() {
		return tokenHead;
	}
	public void setTokenHead(String tokenHead) {
		this.tokenHead = tokenHead;
	}
	public String[] getTokenStores() {
		return tokenStores;
	}
	public void setTokenStores(String[] tokenStores) {
		this.tokenStores = tokenStores;
	}
    
	
}
